from django.urls import include, path
from rest_framework import routers

from .views import CateViewSet,CourseSearchViewSet
router = routers.DefaultRouter()
router.register('search', CourseSearchViewSet, basename='course')
router.register('', CateViewSet, basename='cate')
urlpatterns = [
    path('api/course/', include(router.urls)),
]